package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

/**
 * 好汇推
 */
public class HaoHuiTuiUtil {


    public static String getshebao(String shebao) {
        if (StrUtil.equals(BaseTypeInfoEnum.Shebao.sb001.getValue(), shebao)) {
            return "BB";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Shebao.sb002.getValue(), shebao)) {
            return "Z";
        }
        return "AA";
    }

    public static String getJob(String job) {
         if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz002.getValue(), job)) {
            return "BS";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz001.getValue(), job)) {
            return "A";
        }
        return "C";
    }

    public static String getJob1(String job) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz002.getValue(), job)) {
            return "RT1";
        }
        return "";
    }

    public static String getJob2(String job) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz002.getValue(), job)) {
            return "TAXES1";
        }
        return "";
    }

    public static String getJob3(String job) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz002.getValue(), job)) {
            return "INVOICING1";
        }
        return "";
    }
    public static String getShangBan1(String job) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz001.getValue(), job)) {
            return "H";
        }
        return "";
    }
    public static String getShangBan(String job) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gongzuo.gz001.getValue(), job)) {
            return "D";
        }
        return "";
    }


    public static String getGjj(String gongjijin) {
        if (StrUtil.equals(BaseTypeInfoEnum.Gjj.gjj001.getValue(), gongjijin)) {
            return "FF";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Gjj.gjj002.getValue(), gongjijin)) {
            return "DD";
        }
        return "EE";
    }

    public static String getyuqi(String yuqi) {
        if (StrUtil.equals(BaseTypeInfoEnum.Yuqi.yq001.getValue(), yuqi)) {
            return "YY";
        }
        return "ZZ";
    }


    public static String getCar(String car) {
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)) {
            return "LL";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Car.car002.getValue(), car)) {
            return "JJ";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Car.car003.getValue(), car)) {
            return "KK";
        }
        return "LL";
    }

    public static String getCar1(String car) {
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)) {
            return "";
        }
        return "GGG";
    }

    public static String getCar2(String car) {
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)) {
            return "";
        }
        return "III";
    }


    public static String getHouse(String house) {
        if (StrUtil.equals(BaseTypeInfoEnum.House.hu001.getValue(), house)) {
            return "II";
        } else if (StrUtil.equals(BaseTypeInfoEnum.House.hu004.getValue(), house)) {
            return "HH";
        }
        return "GG";
    }

    public static String getHouse1(String house) {
        if (StrUtil.equals(BaseTypeInfoEnum.House.hu002.getValue(), house)) {
            return "FFF";
        }else if (StrUtil.equals(BaseTypeInfoEnum.House.hu001.getValue(), house)) {
            return "";
        }
        return "EEE";
    }

    public static String getHuabei(String huabei) {
        if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb001.getValue(), huabei)) {
            return "TTT";
        }
        return "SSS";
    }

    public static String getBaitiao(String baitiao) {
        if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt001.getValue(), baitiao)) {
            return "QQQ";
        }
        return "PPP";
    }


    public static String getbaodan(String baodan) {
        if (StrUtil.equals(BaseTypeInfoEnum.Baoxian.bx001.getValue(), baodan)) {
            return "NN";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Baoxian.bx002.getValue(), baodan)) {
            return "KKK";
        }
        return "LLL";
    }


    public static String getloan(String loan) {
        if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la002.getValue(), loan)) {
            return "I";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la003.getValue(), loan)) {
            return "J";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la004.getValue(), loan)) {
            return "K";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la005.getValue(), loan)) {
            return "M";
        }
        return "I";
    }

    public static String getloanTime(String loanTime) {
        if (StrUtil.equals(BaseTypeInfoEnum.LoanTime.lt001.getValue(), loanTime)) {
            return "L";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanTime.lt002.getValue(), loanTime)) {
            return "O";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanTime.lt003.getValue(), loanTime)) {
            return "P";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanTime.lt004.getValue(), loanTime)) {
            return "Q";
        }
        return "L";
    }

    public static String getXueLi(String XueLi) {
        if (StrUtil.equals(BaseTypeInfoEnum.XueLi.xl002.getValue(), XueLi)) {
            return "V";
        } else if (StrUtil.equals(BaseTypeInfoEnum.XueLi.xl003.getValue(), XueLi)) {
            return "W";
        } else if (StrUtil.equals(BaseTypeInfoEnum.XueLi.xl004.getValue(), XueLi)) {
            return "X";
        } else if (StrUtil.equals(BaseTypeInfoEnum.XueLi.xl005.getValue(), XueLi)) {
            return "X";
        }
        return "U";
    }


    public static String getZhimaScore(String zhima) {
        if (StrUtil.equals(BaseTypeInfoEnum.Zhima.zm005.getValue(), zhima)) {
            return "QQ";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Zhima.zm004.getValue(), zhima)) {
            return "DDD";
        } else if (StrUtil.equals(BaseTypeInfoEnum.Zhima.zm003.getValue(), zhima)) {
            return "PP";
        }
        return "OO";
    }


    public static String getXinYongKa(String xinyongka) {
        if(StrUtil.equals(BaseTypeInfoEnum.XinYongKa.xyk001.getValue(),xinyongka)){
            return "WW";
        }
        return "NNN";
    }

    public static String getWeiLi(String weili) {
        if(StrUtil.equals(BaseTypeInfoEnum.WeiLi.wl001.getValue(),weili)){
            return "TT";
        }
        return "UU";
    }
}
